package pl.klangner.recobox.classifier
{
	
	public class DirectionPattern
	{
		// --------------------------------------------------------------------------------------------
		public function DirectionPattern(n:String, d:String){
			
			_name = n;
			_directions = d;
		}
		
		// --------------------------------------------------------------------------------------------
		public function get name():String { return _name};
		
		// --------------------------------------------------------------------------------------------
		/**
		 * Calculate distance for the given feature
		 */
		public function compare(d:String):Boolean{
			
			return ( _directions == d );
		}

		// --------------------------------------------------------------------------------------------
		// Private members
		private var _name:String;
		private var _directions:String;
		
	}
}